package logger

import (
	"github.com/LyricTian/logger"
)

// Init 初始化日志
func Init(debug, trace bool) {
	l := logger.NewStdLogger(debug, trace, true, true, logger.TimeFileFlag)
	l.SetCallDepth(5)
	logger.SetLogger(l)
}

// Infof info级别日志
func Infof(format string, v ...interface{}) { logger.Infof(format, v...) }

// Errorf error级别日志
func Errorf(format string, v ...interface{}) { logger.Errorf(format, v...) }

// Fatalf fatal级别日志
func Fatalf(format string, v ...interface{}) { logger.Fatalf(format, v...) }

// Debugf debug级别日志
func Debugf(format string, v ...interface{}) { logger.Debugf(format, v...) }

// Tracef trace级别日志
func Tracef(format string, v ...interface{}) { logger.Tracef(format, v...) }
